package com.yeban.javase.day16.state.timedwaiting;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/30
 *
 * 计时等待状态 → 就绪状态
 */
public class TimedWaitingAndRunnable {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
            try {
                System.out.println("开始睡眠3秒");
                Thread.sleep(3000);  // TIMED_WAITING
                System.out.println("醒来，继续执行");
            } catch (InterruptedException e) {}
        });
        t.start();
    }
}
